﻿#include<bits/stdc++.h>
using namespace std;
string cut(string s, int first, int num) {
	if (first < 0 || num <= 0) {
		return s;
	}
	if (first + num > s.size()) {
		num = s.size() - first + 1;
	}
	for (int i = 0; i < num; i++) {
		s.erase(first, 1);
	}
	return s;
}
void test1() {
	string s = "abc1234";
	int first = 3;
	int num = 4;
	string expect = "abc";
	cout << ((cut(s, first, num) == expect) ? 'T1' : 'F1');
	cout << endl;
}
void test2() {
	string s = "1234abc!*()";
	int first = 3;
	int num = 4;
	string expect = "123!*()";
	cout << ((cut(s, first, num) == expect) ? 'T2' : 'F2');
	cout << endl;
}
void test3() {
	string s = "";
	int first = 3;
	int num = 3;
	string expect = "";
	cout << ((cut(s, first, num) == expect) ? 'T3' : 'F3');
	cout << endl;
}

void test4() {
	string s = "abcd";
	int first = 2;
	int num = 5;
	string expect = "ab";
	cout << ((cut(s, first, num) == expect) ? 'T4' : 'F4');
	cout << endl;
}

int main() {
	test1();
	test2();
	test3();
	test4();
	return 0;
}